#include "widget.h"

#include <QApplication>
#include <QSharedMemory>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QSharedMemory mem("resoundmusic");
    if(mem.attach())
    {
        QMessageBox::information(nullptr,"提示","窗口正在运行");
        return 0;
    }
    mem.create(1);

    Widget w;
    w.show();
    return a.exec();
}
